package com.shgbit.sdis.control;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.shgbit.sdis.bean.DemoCity;
import com.shgbit.sdis.business.DemoCityService;
import com.shgbit.sdis.util.LogUtils;


@RestController
public class DemoController {

	@Autowired
	DemoCityService emtpyService;
	
	@RequestMapping("/hello")
	public String demoMethod(){
		/*日志输出*/
		LogUtils.Log_Constant = "hello world";
		LogUtils.LogOut("info");
		return "hello";
	}
	
	@RequestMapping("/getList")
	public List<DemoCity> demoGetList(){
		return emtpyService.getList();
	}
}
